

package com.yungu.swift.assets.driver.model.vo;

import java.util.Optional;

/**
 * @author Zerrion
 * @version 1.0
 * @description 用于导出数据的实体 继承与导入实体
 * @date 2017/10/13 16:53
 */
public class DriverExportVo extends DriverImportVo {

    /**
     * 性别 1.男、2.女
     **/
    private String sex;
    /**
     * 国籍，默认156中国
     **/
    private String driverNationality;
    /**
     * 驾驶员民族
     **/
    private String driverNation;
    /**
     * 驾驶员婚姻状况10.未婚，20已婚，40离婚
     **/
    private String driverMaritalStatus;
    /**
     * 驾驶员外语能力1.精通，2.熟练，3.良好，4.一般
     **/
    private String driverLanguageLevel;
    /**
     * 驾驶员学历19.研究生,21.大学本科，31大学专科，41中等专科毕业,61普通高中毕业，71初中毕业，81小学毕业
     **/
    private String driverEducation;

    /**
     * 是否巡游出租汽车驾驶员1：是、0：否
     **/
    private String taxiDriver;

    /**
     * 是否专职驾驶员1：是、0：否
     **/
    private String fullTimeDriver;
    /**
     * 是否在驾驶员黑名单内1：是、0：否
     **/
    private String inDriverBlacklist;
    /**
     * 服务类型1：网络预约出租车、2：巡游出租车、3：私人小客车合乘
     **/
    private String commercialType;

    /**
     * 状态 1：正常、2：短期封号、3：长期封号、4：未审核、5：删除、6：离职、7：未激活
     **/
    private String status;

    public String getStatus() {
        switch (Optional.ofNullable(status).orElse("")) {
            case "1":
                return "正常";
            case "2":
                return "短期封号";
            case "3":
                return "长期封号";
            case "4":
                return "未审核";
            case "5":
                return "删除";
            case "6":
                return "离职";
            case "7":
                return "未激活";
            default:
                return status;
        }
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getSex() {
        switch (Optional.ofNullable(sex).orElse("")) {
            case "1":
                return "男";
            case "2":
                return "女";
            default:
                return sex;
        }
    }

    @Override
    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String getDriverNationality() {
        switch (Optional.ofNullable(driverNationality).orElse("")) {
            case "156":
                return "中国";
            default:
                return driverNationality;
        }
    }

    @Override
    public void setDriverNationality(String driverNationality) {
        this.driverNationality = driverNationality;
    }

    @Override
    public String getDriverNation() {
        switch (Optional.ofNullable(driverNation).orElse("")) {
            case "1":
                return "汉族";
            case "57":
                return "其他";
            default:
                return driverNation;
        }
    }

    @Override
    public void setDriverNation(String driverNation) {
        this.driverNation = driverNation;
    }

    @Override
    public String getDriverMaritalStatus() {
        switch (Optional.ofNullable(driverMaritalStatus).orElse("")) {
            case "10":
                return "未婚";
            case "20":
                return "已婚";
            case "40":
                return "离异";
            default:
                return driverMaritalStatus;
        }
    }

    @Override
    public void setDriverMaritalStatus(String driverMaritalStatus) {
        this.driverMaritalStatus = driverMaritalStatus;
    }

    @Override
    public String getDriverLanguageLevel() {
        switch (Optional.ofNullable(driverLanguageLevel).orElse("")) {
            case "1":
                return "精通";
            case "2":
                return "熟练";
            case "3":
                return "良好";
            case "4":
                return "一般";
            default:
                return driverLanguageLevel;
        }
    }

    @Override
    public void setDriverLanguageLevel(String driverLanguageLevel) {
        this.driverLanguageLevel = driverLanguageLevel;
    }

    @Override
    public String getDriverEducation() {
        switch (Optional.ofNullable(driverEducation).orElse("")) {
            case "19":
                return "研究生";
            case "21":
                return "大学本科";
            case "31":
                return "大学专科";
            case "41":
                return "中等专科毕业";
            case "61":
                return "普通高中毕业";
            case "71":
                return "初中毕业";
            case "81":
                return "小学毕业";
            default:
                return driverEducation;
        }
    }

    @Override
    public void setDriverEducation(String driverEducation) {
        this.driverEducation = driverEducation;
    }

    @Override
    public String getTaxiDriver() {
        switch (Optional.ofNullable(taxiDriver).orElse("")) {
            case "1":
                return "是";
            case "0":
                return "否";
            default:
                return taxiDriver;
        }
    }

    @Override
    public void setTaxiDriver(String taxiDriver) {
        this.taxiDriver = taxiDriver;
    }

    @Override
    public String getFullTimeDriver() {
        switch (Optional.ofNullable(fullTimeDriver).orElse("")) {
            case "1":
                return "是";
            case "0":
                return "否";
            default:
                return fullTimeDriver;
        }
    }

    @Override
    public void setFullTimeDriver(String fullTimeDriver) {
        this.fullTimeDriver = fullTimeDriver;
    }

    @Override
    public String getInDriverBlacklist() {
        switch (Optional.ofNullable(inDriverBlacklist).orElse("")) {
            case "1":
                return "是";
            case "0":
                return "否";
            default:
                return inDriverBlacklist;
        }
    }

    @Override
    public void setInDriverBlacklist(String inDriverBlacklist) {
        this.inDriverBlacklist = inDriverBlacklist;
    }

    @Override
    public String getCommercialType() {
        switch (Optional.ofNullable(commercialType).orElse("")) {
            case "1":
                return "网络预约出租车";
            case "2":
                return "巡游出租车";
            case "3":
                return "私人小客车合乘";
            default:
                return commercialType;
        }
    }

    @Override
    public void setCommercialType(String commercialType) {
        this.commercialType = commercialType;
    }
}
